<!DOCTYPE html>
<html>
<head>
    <title>维护页面</title>
    <script type="text/javascript">

        function doRjMx(DType,ZType,month) {
            var data = {};
            data.DType = DType;
            data.ZType = ZType;
            data.month = month;
            var url = '${absoluteContextPath}/cw/cwHb/';
            url = url + "/doFyMx";
            $.ajax({
                url: url,
                type: 'post',
                data: data,
                success: function (data) {
                    var data = JSON.parse(data);
                    if (data.returnCode == 1) {
                        var pop_div = $('#myModal2');
                        pop_div.html(data.content.data);
                        pop_div.modal('show');
                    } else {
                        $.showMessage({parentId: "errorMessage", message: "数据加载异常！", type: "success"});
                    }
                }
            });
        }
                function refreshTable() {
            $("input[name=currentPage]").val(1);
            $("#search_cwHb_table").ajaxSubmit({
                url:'${absoluteContextPath}/cw/cwHb/fYajaxList',
                success:function(data) {
                    var data = JSON.parse(data);
                    if (data.returnCode == 1) {
                        $("#tableContent").html(data.content.data);
                    } else {
                        $.showMessage({parentId:"showMessage",message:"表格数据加载异常！",type:"success"});
                    }
                }
            });
        }
    </script>
</head>
<body>

<div class="breadcrumbs">
    <ol class="breadcrumb">
        <li><a href="${absoluteContextPath}/home"><i class="fa fa-home"></i>首页</a></li>
        <li><a href="#">用户管理</a></li>
        <li class="active">综合查询</li>
    </ol>
</div>

<div class="main">
    <!-- row -->
    <div class="row">
        <div class="col-md-12">
            <section class="tile">
                <!-- tile body -->
                <div class="tile-body">
                    <div id="showMessage"><#include "../../message.ftl" /></div>
                    <div class="form-horizontal">
                        <form id="search_cwHb_table" action="${absoluteContextPath}/cw/cwHb/fYajaxList" method="post">
                            <input type="hidden" name="pageSize" value="${cwHbsTable.page.pageSize}"/>
                            <input type="hidden" name="currentPage" value="${cwHbsTable.page.currentPage}"/>


                            <div class="row">
                                <div class="form-group col-md-3">
                                    <label class="col-sm-4 control-label" for="exampleInputEmail2">类别</label>

                                    <div class="col-sm-8">
                                        <input class="form-control" name="DType" value="${cwHbParams.DType!''}"
                                               placeholder="" type="text">
                                    </div>
                                </div>
                                <div class="form-group col-md-3">
                                    <label class="col-sm-4 control-label" for="exampleInputEmail2">部门</label>

                                    <div class="col-sm-8">
                                        <input class="form-control" name="ZType" value="${cwHbParams.ZType!''}"
                                               placeholder="" type="text">
                                    </div>
                                </div>
                                <div class="form-group col-md-3">
                                    <label class="col-sm-4 control-label" for="exampleInputEmail2">月</label>

                                    <div class="col-sm-8">
                                        <input class="form-control" name="month" value="${cwHbParams.month!''}"
                                               placeholder="" type="text">
                                    </div>
                                </div>
                                <div class="form-group col-md-3">
                                    <label class="col-sm-4"></label>

                                    <div class="col-sm-8">
                                        <button type="button" class="btn btn-primary" onclick="refreshTable()">查询
                                        </button>
                                        <button type="reset" class="btn btn-default">重置</button>
                                    </div>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </section>
            <section class="tile">
                <div class="tile-header">
                    <h1>
                        <button type="button" class="btn btn-green" onclick="popAddOrModify();"><i class="fa fa-plus"></i><span class="margin-left-5">新增</span></button>
                        <button type="button" class="btn btn-cyan" onclick="deleteCwHb();"><i class="fa fa-trash-o"></i><span  class="margin-left-5">删除</span></button>
                    </h1>
                </div>
                <div class="tile-body nopadding">
                    <div class="table-responsive" id="tableContent">
                        <#include "fYtable.ftl"/>
                    </div>
                </div>
            </section>
        </div>
    </div>
    <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    </div>
    <div class="modal fade" id="myModal2" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
    </div>
</div>
</body>
</html>
